import { Tag, TagHaveChild } from "../model/tag";

export interface ServiceTagGetParams {
  tag_type?: Tag['tag_type'];
  shop_id?: number;
  needTree?: boolean;
  treeAndList?: boolean;
}

export type ServiceTagGetResOnlyList = Tag[];

export type ServiceTagGetResListHaveChildren = TagHaveChild[];

export interface ServiceTagGetResTreeAndList {
  list: Tag[];
  tree: TagHaveChild[];
}

/**
 * [API] 创建与编辑标签接口
 */
export interface ServiceTagSaveParams {
  tag_id?: number;
  tag_name: string;
  tag_type: Tag['tag_type'];
  tag_parent_id?: number;
  sort?: number | null;
}
